package ro.imc.rest.server.util;

import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.Transformer;

import java.util.LinkedList;
import java.util.List;


public class ListTransformer<T> {

    public List<T> transformAll(List<?> inputList, Transformer t) {
        List<T> outputList = new LinkedList<T>();
        CollectionUtils.collect(inputList, t, outputList);
        return outputList;
    }
}
